package edu.sctu.practice.class01.wulixia.month09_wlx.test01;

/**
 * Created by wulixia on 2015/10/12.
 */
public class GamerA {

    public int number = 100;

    public void isGuessResult(int answer){

        if(answer == number){
            System.out.println("恭喜你，猜对了！游戏结束！");
        }else if(answer > number) {
            System.out.println("数值大了，请重新猜。");
        }else {
            System.out.println("数值小了，请重新猜。");
        }
    }
}
